import request from '@/utils/request'

export function getAllRoleModule() {
    return request({
        url: '/roleModule/getAllRoleModule',
        method: 'get',
    })
}

export function saveRoleModule(data) {
    return request({
        url: '/roleModule/saveRoleModule',
        method: 'post',
        data
    })
}

export function updateRoleModule(data) {
    return request({
        url: '/roleModule/updateRoleModule',
        method: 'put',
        data
    })
}

export function deleteRoleModule(id) {
    return request({
        url: '/roleModule/deleteRoleModule/'+id,
        method: 'delete',
    })
}
